import Axios from 'axios';

const request = Axios.create({
    baseURL: 'http://127.0.0.1:7878',
    timeout: 5000
})

request.interceptors.request.use(config => {

    return config;
})

request.interceptors.response.use(res => {

    return res.data;
}, err => {
    return Promise.reject(err);
})

export default request;